#ifndef _LED_H
#define _LED_H

#include "stm32f10x.h"
#include "system.h"

#define LED_PORT GPIOA  //定义gpio端口
#define led1 PAout(0)
#define led2 PAout(1)
#define led3 PAout(2)
#define led4 PAout(3)
#define led5 PAout(4)
#define led6 PAout(5)
#define led7 PAout(6)
#define led8 PAout(7)


void led_init(void);

void led_write_data(uint16_t GPIO_Pin_from, u8 num,u8 data);

#endif